import { PartialType } from '@nestjs/mapped-types';
import { CreateTaskDto } from './create-task.dto';
import { ApiProperty } from '@nestjs/swagger';

export class UpdateTaskDto extends PartialType(CreateTaskDto) {
    @ApiProperty({title:'任务名字'})
    name: string;

    @ApiProperty({title:'任务描述'})
    description: string;

    @ApiProperty({title:'任务创建者id'})
    uid: number;

    @ApiProperty({title:'任务的模式id'})
    mid: number;

    @ApiProperty({title:'任务的开始时间'})
    startAt: Date;

    @ApiProperty({title:'任务的结束时间'})
    endedAt: Date;

    @ApiProperty({title:'任务状态，0任务未开始，1任务中，3任务结束'})
    state: number;

    @ApiProperty({title:'任务等级，0-3数字越大对应等级越高'})
    level: number;

    @ApiProperty({title:'顺序位置'})
    index: number;

}
